package com.guli.mall.service;
/*
 * @Author 罗
 * @date 2020/10/13 - 7:26 下午
 */

import com.guli.common.to.SpuEsTo;
import com.guli.mall.vo.SearchParamsVo;
import com.guli.mall.vo.SearchResultVo;

import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface ProductSearchService {

    SearchResultVo search(SearchParamsVo searchParams) throws IOException;

    /**
     * 检索 spu的个数，以及该spu下总共有多少个sku
     * @return
     */
    Map<Integer,Integer> searchSpuCountAndItsSkuCount(SearchParamsVo searchParams) throws IOException;
}
